package dao;

import entity.User;
import org.apache.commons.codec.digest.DigestUtils;
import org.hibernate.Session;
import org.hibernate.Transaction;
import service.VideoDaoService;
import utils.HibernateUtils;

public class test {
    public static void main(String[] args) {
        UserDaoImpl log = new UserDaoImpl();
        VideoDaoService vd = new VideoDaoService();
        System.out.println("结果1"+log.Login("aaa",DigestUtils.md5Hex("admin")));
        System.out.println(log.Login("aaa",DigestUtils.md5Hex("123")));
        System.out.println(vd.findOneVideo());
        HibernateUtils.closeSession();
        }

    }
